from Base import message, intersect, SS_VALID
from DRG import MDCF_DRG

def group(record):
  adrg_zd = []
  adrg_zd1 = []
  adrg_ss = ["38.4500x003","38.4500x007","38.4500x009","38.4500x010","38.4500x011","38.4500x013","38.4500x014","38.4500x015","38.4500x016","38.4500x018","38.4500x019","38.4500x021","38.4501","38.4502","38.4503","38.4504","38.4505","38.4506","38.4507","38.4511","38.4700x001","38.4702","39.1x00x009","39.1x00x011","39.5900x030"]
  adrg_ss1 = []
  dept_list = []

  if True and record.ssList and record.ssList[0] in adrg_ss:
    message('符合FE1入组条件，匹配规则：主手术匹配')

    if MDCF_DRG.FE19_group(record):
      return 'FE19'
        
    return 'FE1'
  else:
    return ''
    
